package com.saer.server.network.electro;

import java.awt.Color;
import java.util.ArrayList;

public class Electrocardiograma implements java.io.Serializable {

	private static final long serialVersionUID = 728315928851737845L;

	private ArrayList<Toma> tomas;

	private Color color;

	public Electrocardiograma() {
		tomas = new ArrayList<Toma>();
	}

	public Color getColor() {
		return color;
	}

	public void setColor(Color color) {
		this.color = color;
	}

	public void agregar_toma(Toma m) {
		tomas.add(m);
	}

	public Toma da_toma(int i) throws IndexOutOfBoundsException {
		return tomas.get(i);
	}

	public int cant_tomas() {
		return tomas.size();
	}

}
